<html>
	<head>
		<title>a test for selection object</title>
	</head>
	<body>
		<script language='javascript'>
			function selectionContentByScript(){
				var t=document.getElementById("test");
				var o=t.createTextRange();
				o.findText("be");
				//o.moveStart("character",2);
				o.select();
				//document.selection.clear();
			}
		</script>
		<form>
			<input id='test' type='text' value='will be selected' />
			<br />
			<input type='button' onclick='javascript:selectionContentByScript();' value='select the text box value' />
		</form>
	</body>
</html>
